package com.winning.bdu.dl.quartz.manage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 定时任务监控mapper
 *
 * @Author: shipengfei
 * @Description:
 * @Date: 2019-06-04 9:02
 */
@Mapper
public interface JobMonitorMapper {

    /**
     * 初始化定时任务执行日志
     *
     * @param processId
     * @param jobName
     * @param group
     */
    void insertProcessInfo(@Param("processId") String processId,
                           @Param("jobName") String jobName, @Param("jobGroup") String group);

    /**
     * 更新定时任务执行状态
     *
     * @param processId
     * @param runningState
     * @param runMsg
     */
    void updateProcessInfo(@Param("processId") String processId,
                           @Param("runningState") String runningState, @Param("runMsg") String runMsg);
}
